import { createApp } from 'vue'
import App from './App.vue'
//reset-css
import './assets/css/reset.css'
import './assets/css/public.css'
//element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//ele/icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//inco-font
import './assets/css/font_3848451_q64vyxsmya/iconfont.css'
//router
import router from './router'
//store
import store from './store'
//自定义组件
import MiConfirm from './components/MiConfirm/MiConfirm'
import MiAlert from './components/MiAlert/MiAlert'





const app = createApp(App)
app.config.globalProperties.$miConfirm = MiConfirm
app.config.globalProperties.$miAlert = MiAlert



app.use(store)
app.use(router)
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}






app.mount('#app')
// createApp(App).use(router).mount('#app')
